package com.crm.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the PURCHASERGDETAILS database table.
 * 
 */
@Entity
@Table(name="PURCHASERGDETAILS")
@NamedQuery(name="Purchasergdetail.findAll", query="SELECT p FROM Purchasergdetail p")
public class Purchasergdetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(initialValue = 1, allocationSize = 1,name="PURCHASERGDETAILS_PRGID_GENERATOR", sequenceName="SEQ3")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PURCHASERGDETAILS_PRGID_GENERATOR")
	private Long prgid;

	private Long ppurdid;
	@Column(name="PRGTHEME")
	private String prgtheme;

	private Long prgcount;

	private Double prgmoney;

	private String prgreasons;

	@Column(name="PURCHASERGDETAILS_IS_DEL")
	private String purchasergdetailsIsDel;
	//采购单id
	private Long puridfk;

	@Temporal(TemporalType.DATE)
	@JSONField(format = "yyyy-MM-dd")
	private Date prgdate;

	@Transient
	private String clientname;

	@Transient
	private String purtheme;

	@Transient
	private String purstatus;

	public Purchasergdetail() {
	}

	public String getPrgtheme() {
		return prgtheme;
	}

	public void setPrgtheme(String prgtheme) {
		this.prgtheme = prgtheme;
	}

	public String getPurstatus() {
		return purstatus;
	}

	public void setPurstatus(String purstatus) {
		this.purstatus = purstatus;
	}

	public String getClientname() {
		return clientname;
	}

	public void setClientname(String clientname) {
		this.clientname = clientname;
	}

	public String getPurtheme() {
		return purtheme;
	}

	public void setPurtheme(String purtheme) {
		this.purtheme = purtheme;
	}

	public Long getPrgid() {
		return this.prgid;
	}

	public void setPrgid(Long prgid) {
		this.prgid = prgid;
	}

	public Long getPpurdid() {
		return ppurdid;
	}

	public void setPpurdid(Long ppurdid) {
		this.ppurdid = ppurdid;
	}

	public Date getPrgdate() {
		return prgdate;
	}

	public void setPrgdate(Date prgdate) {
		this.prgdate = prgdate;
	}

	public Long getPrgcount() {
		return prgcount;
	}

	public void setPrgcount(Long prgcount) {
		this.prgcount = prgcount;
	}

	public Double getPrgmoney() {
		return prgmoney;
	}

	public void setPrgmoney(Double prgmoney) {
		this.prgmoney = prgmoney;
	}

	public Long getPuridfk() {
		return puridfk;
	}

	public void setPuridfk(Long puridfk) {
		this.puridfk = puridfk;
	}

	public String getPrgreasons() {
		return this.prgreasons;
	}

	public void setPrgreasons(String prgreasons) {
		this.prgreasons = prgreasons;
	}

	public String getPurchasergdetailsIsDel() {
		return this.purchasergdetailsIsDel;
	}

	public void setPurchasergdetailsIsDel(String purchasergdetailsIsDel) {
		this.purchasergdetailsIsDel = purchasergdetailsIsDel;
	}
}